package test;

import java.util.*;
public class t1 {
	public static void main(String[] args) {
		Calendar calendar = Calendar.getInstance();
		int year1 = Integer.parseInt(args[0]);
		int month1 = Integer.parseInt(args[1]);
		int day1 = Integer.parseInt(args[2]);
		System.out.print(year1+"年"+month1+"月"+day1+"日");
		
		calendar.set(year1, month1-1,day1);
		long time1= calendar.getTimeInMillis();
		
		System.out.print(" 距 ");
		
		int year2 = Integer.parseInt(args[3]);
		int month2 = Integer.parseInt(args[4]);
		int day2 = Integer.parseInt(args[5]);
		System.out.print(year2+"年"+month2+"月"+day2+"日");
		
		calendar.set(year2, month2-1, day2);
		long time2 = calendar.getTimeInMillis();
		
		long subday= (time2 - time1)/(1000*60*60*24);
		
		System.out.print(" "+subday+"天");
		
		
	}

}
